import React from "react";

export class NormalFrom extends React.Component {
  txtRef = React.createRef()

  handleClick = () => {
    //current===e.target
    console.log(this.txtRef.current.value);
    this.txtRef.current.focus()
  }

  render() {
    return (
      <div>
        <input ref={this.txtRef} name="xxx" />
        <button onClick={this.handleClick}>提交</button>
      </div>
    )
  }
}